package com.exmaple.lemlin.entity;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Property;

@Entity
public class ChatMessage {
    @Id(autoincrement = true)
    private Long id;
    @Property(nameInDb = "name")
    private String name;
    @Property(nameInDb = "from")
    private String from;
    @Property(nameInDb = "to")
    private String to;
    @Property(nameInDb = "msg_text")
    private String msgText;
    @Property(nameInDb = "msg_type")
    private String msgType;
    @Property(nameInDb = "msg_time")
    private long msgTime;
    @Property(nameInDb = "msg_flag")
    private boolean msgFlag;
    @Generated(hash = 828984322)
    public ChatMessage(Long id, String name, String from, String to, String msgText,
            String msgType, long msgTime, boolean msgFlag) {
        this.id = id;
        this.name = name;
        this.from = from;
        this.to = to;
        this.msgText = msgText;
        this.msgType = msgType;
        this.msgTime = msgTime;
        this.msgFlag = msgFlag;
    }
    @Generated(hash = 2271208)
    public ChatMessage() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getFrom() {
        return this.from;
    }
    public void setFrom(String from) {
        this.from = from;
    }
    public String getTo() {
        return this.to;
    }
    public void setTo(String to) {
        this.to = to;
    }
    public String getMsgText() {
        return this.msgText;
    }
    public void setMsgText(String msgText) {
        this.msgText = msgText;
    }
    public String getMsgType() {
        return this.msgType;
    }
    public void setMsgType(String msgType) {
        this.msgType = msgType;
    }
    public long getMsgTime() {
        return this.msgTime;
    }
    public void setMsgTime(long msgTime) {
        this.msgTime = msgTime;
    }
    public boolean getMsgFlag() {
        return this.msgFlag;
    }
    public void setMsgFlag(boolean msgFlag) {
        this.msgFlag = msgFlag;
    }
}
